@Only-api
@Post
@Get
@Delete
@BiologicallyDerivedProduct
Feature: Cell Donor Type and Source resource actions
Description: This feature checks the patient resource actions, get, post and delete made on FHIR specific BiologicallyDerivedProduct node. This resource is part of the Stem Cell Transplantation.
File name: xat.feature
Relative path: api/xat.feature
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:39:48.223 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:39:48.868 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:39:48.868 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qQHCL08PRRP4slzH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16414/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:39:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16414/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:39:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:39:48.868 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:39:53.622+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:39:48.869 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:39:48.870 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:39:48.871 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qQHCL08PRRP4slzH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16414/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:39:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16414/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:39:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:39:48.871 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:39:53.622+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:39:48.871 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:39:49.486 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:39:53.622+02:00",
"source": "#qQHCL08PRRP4slzH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:39:50.348 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:39:50.942 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:39:55.134+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:39:55.134+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:39:50.943 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:39:51.514 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:39:51.515 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jpZ5RuhxWCCU4EvK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16415/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:39:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16415/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:39:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:39:51.515 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:39:56.298+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:39:51.515 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:39:51.517 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:39:51.517 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jpZ5RuhxWCCU4EvK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16415/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:39:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16415/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:39:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:39:51.517 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:39:56.298+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:39:51.517 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:39:52.331 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:39:56.298+02:00",
"source": "#jpZ5RuhxWCCU4EvK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:39:53.904 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:39:54.522 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:39:58.693+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:39:58.693+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:39:54.523 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:39:55.087 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:39:55.087 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xpdVqK8lRl6ey4rz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16416/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:39:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16416/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:39:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:39:55.087 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:39:59.882+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:39:55.087 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:39:55.087 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:39:55.087 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xpdVqK8lRl6ey4rz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16416/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:39:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16416/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:39:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:39:55.087 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:39:59.882+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:39:55.087 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:39:55.681 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:39:59.882+02:00",
"source": "#xpdVqK8lRl6ey4rz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:39:56.435 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:39:57.035 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:01.222+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:01.222+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:39:57.039 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:39:57.618 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:39:57.618 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Seg6EAkLH7q0dpr2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16417/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16417/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:39:57.618 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:02.403+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:39:57.618 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:39:57.621 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:39:57.621 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Seg6EAkLH7q0dpr2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16417/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16417/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:39:57.621 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:02.403+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:39:57.621 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:39:58.183 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:02.403+02:00",
"source": "#Seg6EAkLH7q0dpr2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:39:58.835 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:39:59.418 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:03.612+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:03.612+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:39:59.418 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:00.139 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:00.139 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"AZ34hMEIGhOJjV3s"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16418/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16418/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:00.139 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:04.911+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:00.139 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:00.141 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:00.141 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"AZ34hMEIGhOJjV3s"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16418/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16418/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:00.141 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:04.911+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:00.141 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:00.762 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:04.911+02:00",
"source": "#AZ34hMEIGhOJjV3s",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:01.411 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:01.990 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:06.204+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:06.204+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:01.991 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:02.571 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:02.571 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"d1MAiDtB20UhocRi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16419/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16419/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:02.571 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:07.359+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:02.571 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:02.587 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:02.587 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"d1MAiDtB20UhocRi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16419/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16419/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:02.587 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:07.359+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:02.587 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:03.154 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:07.359+02:00",
"source": "#d1MAiDtB20UhocRi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:03.755 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:04.332 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:08.533+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:08.533+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:04.332 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:04.918 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:04.918 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8YNquq5gw3WboCVR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16420/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16420/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:04.918 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:09.715+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:04.918 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:04.918 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:04.918 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8YNquq5gw3WboCVR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16420/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16420/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:04.918 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:09.715+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:04.918 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:05.575 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:09.715+02:00",
"source": "#8YNquq5gw3WboCVR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:06.210 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:06.826 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:10.985+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:10.985+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:06.827 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:07.467 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:07.467 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XOTjsLpyX3byklzA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16421/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16421/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:07.467 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:12.254+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:07.467 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:07.469 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:07.469 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XOTjsLpyX3byklzA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16421/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16421/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:07.469 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:12.254+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:07.469 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:08.034 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:12.254+02:00",
"source": "#XOTjsLpyX3byklzA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:08.683 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:09.268 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:13.457+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:13.457+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:09.268 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:09.892 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:09.892 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Cs98OJJGh5kgSNGv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16422/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16422/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:09.892 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:14.677+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:09.892 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:09.893 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:09.893 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Cs98OJJGh5kgSNGv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16422/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16422/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:09.893 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:14.677+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:09.893 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:10.489 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:14.677+02:00",
"source": "#Cs98OJJGh5kgSNGv",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:11.429 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:12.081 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:16.005+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:16.005+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:12.082 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:13.668 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:13.668 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IDse2A9BRyx0g68a"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16423/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16423/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:13.668 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:18.453+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:13.669 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:13.670 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:13.670 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IDse2A9BRyx0g68a"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16423/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16423/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:13.670 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:18.453+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:13.670 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:14.260 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:18.453+02:00",
"source": "#IDse2A9BRyx0g68a",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:15.089 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:15.683 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:19.863+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:19.863+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:15.684 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:16.272 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:16.272 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zyhbuIsX1a0Ls3Zj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16424/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16424/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:16.272 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:21.068+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:16.272 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:16.272 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:16.272 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zyhbuIsX1a0Ls3Zj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16424/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16424/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:16.272 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:21.068+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:16.272 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:16.903 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:21.068+02:00",
"source": "#zyhbuIsX1a0Ls3Zj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:17.506 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:18.076 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:22.288+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:22.288+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:18.076 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:18.711 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:18.711 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"p6QiqbcLnGqEqJhH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16425/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16425/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:18.711 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:23.484+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:18.711 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:18.713 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:18.713 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"p6QiqbcLnGqEqJhH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16425/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16425/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:18.713 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:23.484+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:18.713 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:19.342 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:23.484+02:00",
"source": "#p6QiqbcLnGqEqJhH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:19.966 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:20.579 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:24.753+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:24.753+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:20.579 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:21.478 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:21.478 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1vYOSi04xbXeyhuZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16426/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16426/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:21.478 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:26.243+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:21.478 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:21.481 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:21.481 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1vYOSi04xbXeyhuZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16426/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16426/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:21.481 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:26.243+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:21.481 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:22.200 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:26.243+02:00",
"source": "#1vYOSi04xbXeyhuZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:22.834 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:23.414 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:27.613+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:27.613+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:23.414 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:24.022 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:24.022 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GcVfb3zgavXpRd9e"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16427/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16427/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:24.022 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:28.811+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:24.022 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:24.022 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:24.022 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GcVfb3zgavXpRd9e"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16427/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16427/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:24.022 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:28.811+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:24.022 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:24.671 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:28.811+02:00",
"source": "#GcVfb3zgavXpRd9e",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:25.484 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:26.101 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:30.265+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:30.265+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:26.103 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:26.764 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:26.765 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"z6sVXketOtoSE94x"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16428/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16428/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:26.765 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:31.523+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:26.765 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:26.766 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:26.766 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"z6sVXketOtoSE94x"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16428/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16428/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:26.766 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:31.523+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:26.766 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:27.505 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:31.523+02:00",
"source": "#z6sVXketOtoSE94x",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:28.126 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:28.731 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:32.914+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:32.914+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:28.731 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:29.387 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:29.387 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SOIJo0YsVfS0RaSF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16429/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16429/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:29.387 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:34.167+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:29.387 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:29.387 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:29.387 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SOIJo0YsVfS0RaSF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16429/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16429/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:29.387 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:34.167+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:29.387 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:31.070 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:34.167+02:00",
"source": "#SOIJo0YsVfS0RaSF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:31.688 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:32.476 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:36.483+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:36.483+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:32.477 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:33.127 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:33.127 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lDpRPlsd70E8BdFu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16430/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16430/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:33.127 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:37.905+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:33.127 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:33.128 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:33.128 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lDpRPlsd70E8BdFu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16430/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16430/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:33.128 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:37.905+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:33.128 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:33.756 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:37.905+02:00",
"source": "#lDpRPlsd70E8BdFu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:34.360 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:34.927 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:39.145+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:39.145+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:34.927 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:35.554 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:35.554 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pK4j4QBQ83DG6NBD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16431/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16431/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:35.554 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:40.339+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:35.554 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:35.557 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:35.557 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pK4j4QBQ83DG6NBD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16431/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16431/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:35.557 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:40.339+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:35.557 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:36.199 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:40.339+02:00",
"source": "#pK4j4QBQ83DG6NBD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:36.786 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:37.588 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:41.575+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:41.575+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:37.588 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:38.205 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:38.205 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3anX2KFwYSc7UK5q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16432/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16432/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:38.205 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:42.990+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:38.205 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:38.205 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:38.205 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3anX2KFwYSc7UK5q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16432/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16432/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:38.205 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:42.990+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:38.205 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:38.806 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:42.990+02:00",
"source": "#3anX2KFwYSc7UK5q",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:39.445 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:40.030 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:44.233+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:44.233+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:40.030 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:41.639 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:41.639 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LnMI5fzg6DmWPFQK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16433/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16433/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:41.639 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:46.435+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:41.639 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:41.639 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:41.639 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LnMI5fzg6DmWPFQK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16433/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16433/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:41.639 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:46.435+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:41.639 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:42.557 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:46.435+02:00",
"source": "#LnMI5fzg6DmWPFQK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:43.221 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:43.843 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:47.988+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:47.988+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:43.844 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:44.487 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:44.487 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"C6Cku725JY6RsWHm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16434/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16434/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:44.487 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:49.271+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:44.487 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:44.487 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:44.487 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"C6Cku725JY6RsWHm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16434/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16434/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:44.487 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:49.271+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:44.487 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:45.394 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:49.271+02:00",
"source": "#C6Cku725JY6RsWHm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:46.033 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:46.617 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:50.816+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:50.816+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:46.617 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:47.270 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:47.270 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jzcnlRWSoTwg7561"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16435/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16435/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:47.270 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:52.055+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:47.270 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:47.270 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:47.270 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jzcnlRWSoTwg7561"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16435/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16435/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:47.270 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:52.055+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:47.270 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:48.887 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:52.055+02:00",
"source": "#jzcnlRWSoTwg7561",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:49.492 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:50.094 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:54.278+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:54.278+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:50.095 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:50.700 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:50.700 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"K8J6RwgRbUvJPQeH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16436/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16436/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:50.700 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:55.487+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:50.700 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:50.701 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:50.701 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"K8J6RwgRbUvJPQeH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16436/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16436/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:50.702 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:55.487+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:50.702 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:51.390 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:55.487+02:00",
"source": "#K8J6RwgRbUvJPQeH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:53.023 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:53.655 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:40:57.799+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:40:57.799+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:53.655 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:54.263 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:54.263 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GO4JoGC2bz2nE0Bj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16437/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16437/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:54.263 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:59.044+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:54.263 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:54.263 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:54.263 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GO4JoGC2bz2nE0Bj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16437/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:40:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16437/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:40:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:54.263 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:59.044+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:54.263 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:54.852 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:40:59.044+02:00",
"source": "#GO4JoGC2bz2nE0Bj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:55.652 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:56.248 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:00.428+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:00.428+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:56.248 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:56.887 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:56.887 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"016Y2ia16ZieASkr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16438/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16438/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:56.887 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:01.679+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:56.887 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:40:56.887 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:40:56.887 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"016Y2ia16ZieASkr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16438/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16438/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:40:56.887 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:01.679+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:40:56.887 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:40:57.522 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:01.679+02:00",
"source": "#016Y2ia16ZieASkr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:40:58.158 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:40:58.760 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:02.952+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:02.952+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:40:58.760 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:00.340 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:00.340 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mUglLUEv6osO07ia"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16439/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16439/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:00.340 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:05.135+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:00.340 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:00.340 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:00.340 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mUglLUEv6osO07ia"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16439/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16439/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:00.340 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:05.135+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:00.340 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:00.985 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:05.135+02:00",
"source": "#mUglLUEv6osO07ia",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:01.579 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:02.222 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:06.354+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:06.354+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:02.237 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:02.869 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:02.869 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xTPUuJbZcdX1qpdX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16440/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16440/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:02.869 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:07.643+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:02.869 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:02.869 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:02.869 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xTPUuJbZcdX1qpdX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16440/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16440/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:02.869 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:07.643+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:02.869 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:03.501 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:07.643+02:00",
"source": "#xTPUuJbZcdX1qpdX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:04.087 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:04.706 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:08.867+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:08.867+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:04.706 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:05.298 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:05.298 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hmixHgsvV0rucGuH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16441/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16441/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:05.298 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:10.084+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:05.299 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:05.300 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:05.300 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hmixHgsvV0rucGuH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16441/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16441/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:05.300 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:10.084+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:05.300 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:05.870 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:10.084+02:00",
"source": "#hmixHgsvV0rucGuH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:06.890 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:07.519 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:11.672+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:11.672+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:07.520 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:08.202 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:08.202 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZSu3ECycqEhRHJtB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16442/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16442/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:08.202 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:12.986+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:08.202 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:08.205 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:08.205 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZSu3ECycqEhRHJtB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16442/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16442/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:08.205 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:12.986+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:08.205 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:08.843 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:12.986+02:00",
"source": "#ZSu3ECycqEhRHJtB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:09.454 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:10.034 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:14.250+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:14.250+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:10.035 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:10.627 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:10.627 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QQP6Ihu1D9RoUr2M"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16443/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16443/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:10.627 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:15.415+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:10.627 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:10.628 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:10.628 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QQP6Ihu1D9RoUr2M"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16443/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16443/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:10.628 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:15.415+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:10.628 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:11.186 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:15.415+02:00",
"source": "#QQP6Ihu1D9RoUr2M",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:11.819 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:12.444 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:16.595+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:16.595+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:12.445 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:13.447 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:13.448 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hliOfL3IZnq005SX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16444/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16444/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:13.448 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:18.223+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:13.448 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:13.449 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:13.449 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hliOfL3IZnq005SX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16444/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16444/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:13.449 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:18.223+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:13.449 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:14.013 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:18.223+02:00",
"source": "#hliOfL3IZnq005SX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:14.595 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:15.174 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:19.381+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:19.381+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:15.174 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:15.807 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:15.807 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jswEydMfgYCKJUK1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16445/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16445/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:15.807 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:20.573+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:15.807 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:15.807 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:15.807 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jswEydMfgYCKJUK1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16445/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16445/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:15.807 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:20.573+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:15.807 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:16.418 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:20.573+02:00",
"source": "#jswEydMfgYCKJUK1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:25.211 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:25.771 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:29.995+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:29.995+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:25.771 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:26.553 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:26.553 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"W1PC6sjkeHXNyUtZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16446/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16446/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:26.553 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:31.335+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:26.553 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:26.555 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:26.555 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"W1PC6sjkeHXNyUtZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16446/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16446/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:26.555 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:31.335+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:26.555 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:27.161 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:31.335+02:00",
"source": "#W1PC6sjkeHXNyUtZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:27.757 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:28.323 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:32.536+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:32.536+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:28.324 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:28.879 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:28.879 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"21Bz2b8Im0c4rEZd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16447/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16447/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:28.879 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:33.675+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:28.879 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:28.879 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:28.879 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"21Bz2b8Im0c4rEZd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16447/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16447/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:28.879 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:33.675+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:28.879 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:29.512 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:33.675+02:00",
"source": "#21Bz2b8Im0c4rEZd",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:30.119 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:31.740 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:34.904+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:34.904+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:31.742 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:32.324 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:32.324 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sWQaGyOizSNRf0EZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16448/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16448/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:32.324 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:37.114+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:32.324 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:32.325 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:32.325 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sWQaGyOizSNRf0EZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16448/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16448/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:32.325 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:37.114+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:32.325 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:32.959 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:37.114+02:00",
"source": "#sWQaGyOizSNRf0EZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:34.024 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:34.587 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:38.811+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:38.811+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:34.587 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:35.204 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:35.204 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pe8mkwFHSfM8IqHn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16449/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16449/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:35.204 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:39.986+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:35.204 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:35.204 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:35.204 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pe8mkwFHSfM8IqHn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16449/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16449/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:35.204 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:39.986+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:35.204 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:35.808 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:39.986+02:00",
"source": "#pe8mkwFHSfM8IqHn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:36.392 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:37.004 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:41.177+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:41.177+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:37.005 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:37.704 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:37.704 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BJMgfo8SeTklTEcd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16450/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16450/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:37.704 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:42.461+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:37.704 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:37.706 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:37.706 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BJMgfo8SeTklTEcd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16450/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16450/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:37.706 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:42.461+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:37.706 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:38.324 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:42.461+02:00",
"source": "#BJMgfo8SeTklTEcd",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:38.921 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:39.538 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:43.714+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:43.714+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:39.538 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:40.121 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:40.121 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qygclsTh59FwhgR2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16451/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16451/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:40.121 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:44.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:40.121 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:40.121 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:40.121 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qygclsTh59FwhgR2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16451/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16451/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:40.121 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:44.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:40.121 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:40.738 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:44.916+02:00",
"source": "#qygclsTh59FwhgR2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:41.354 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:41.974 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:46.140+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:46.140+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:41.975 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:42.631 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:42.631 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jSuubLsz2ZNE8o8r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16452/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16452/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:42.631 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:47.399+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:42.631 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:42.632 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:42.632 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jSuubLsz2ZNE8o8r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16452/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16452/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:42.633 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:47.399+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:42.633 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:43.339 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:47.399+02:00",
"source": "#jSuubLsz2ZNE8o8r",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:43.924 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:44.549 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:48.718+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:48.718+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:44.549 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:45.170 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:45.170 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CfD74B0Rewz7gDhm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16453/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16453/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:45.170 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:49.958+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:45.170 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:45.170 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:45.170 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CfD74B0Rewz7gDhm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16453/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16453/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:45.170 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:49.958+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:45.170 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:45.740 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:49.958+02:00",
"source": "#CfD74B0Rewz7gDhm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:46.366 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:46.963 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:51.151+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:51.151+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:46.963 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:47.548 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:47.548 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NkepgwYKUsRPLrZC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16454/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16454/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:47.548 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:52.324+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:47.548 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:47.548 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:47.548 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NkepgwYKUsRPLrZC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16454/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16454/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:47.548 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:52.324+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:47.548 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:48.189 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:52.324+02:00",
"source": "#NkepgwYKUsRPLrZC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:48.765 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:49.412 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:53.558+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:53.558+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:49.413 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:49.982 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:49.982 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mbl6xrmJHqENH1be"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16455/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16455/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:49.982 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:54.768+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:49.982 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:49.983 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:49.983 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mbl6xrmJHqENH1be"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16455/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16455/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:49.983 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:54.768+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:49.983 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:51.573 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:54.768+02:00",
"source": "#mbl6xrmJHqENH1be",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:52.203 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:52.853 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:56.988+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:56.988+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:52.854 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:53.467 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:53.467 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zJskgy8rLxwauJfC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16456/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16456/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:53.467 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:58.250+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:53.467 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:53.467 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:53.467 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zJskgy8rLxwauJfC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16456/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:41:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16456/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:41:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:53.467 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:58.250+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:53.467 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:54.048 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:41:58.250+02:00",
"source": "#zJskgy8rLxwauJfC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:54.647 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:55.257 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:41:59.434+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:41:59.434+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:55.258 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:55.890 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:55.890 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MojqBBgaMR9MKBrR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16457/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16457/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:55.890 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:00.670+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:55.890 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:55.891 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:55.891 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MojqBBgaMR9MKBrR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16457/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16457/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:55.891 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:00.670+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:55.891 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:56.504 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:00.670+02:00",
"source": "#MojqBBgaMR9MKBrR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:57.166 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:41:57.786 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:01.952+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:01.952+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:41:57.786 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:58.377 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:58.377 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wCFXT28GMEWEkzYH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16458/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16458/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:58.377 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:03.170+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:58.377 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:41:58.377 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:41:58.377 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wCFXT28GMEWEkzYH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16458/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16458/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:41:58.377 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:03.170+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:41:58.377 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:41:59.034 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:03.170+02:00",
"source": "#wCFXT28GMEWEkzYH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:41:59.861 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:00.482 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:04.644+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:04.644+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:00.483 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:01.095 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:01.095 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5nnp4UjrRBPPp763"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16459/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16459/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:01.095 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:05.875+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:01.095 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:01.095 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:01.095 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5nnp4UjrRBPPp763"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16459/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16459/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:01.095 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:05.875+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:01.095 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:01.702 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:05.875+02:00",
"source": "#5nnp4UjrRBPPp763",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:02.270 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:02.895 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:07.062+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:07.062+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:02.896 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:03.474 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:03.474 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8tgwLk3kJZ4ojsde"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16460/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16460/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:03.474 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:08.261+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:03.474 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:03.475 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:03.475 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8tgwLk3kJZ4ojsde"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16460/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16460/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:03.476 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:08.261+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:03.476 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:04.042 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:08.261+02:00",
"source": "#8tgwLk3kJZ4ojsde",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:04.676 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:05.287 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:09.459+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:09.459+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:05.287 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:05.870 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:05.870 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"L7ZTWc4YM6VmGRAF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16461/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16461/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:05.871 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:10.645+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:05.871 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:05.873 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:05.873 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"L7ZTWc4YM6VmGRAF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16461/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16461/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:05.873 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:10.645+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:05.873 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:06.434 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:10.645+02:00",
"source": "#L7ZTWc4YM6VmGRAF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:07.036 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:07.665 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:11.830+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:11.830+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:07.665 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:08.571 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:08.571 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pa7kDzjBux3vVKE6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16462/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16462/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:08.571 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:13.347+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:08.571 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:08.572 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:08.572 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pa7kDzjBux3vVKE6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16462/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16462/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:08.572 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:13.347+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:08.572 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:09.173 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:13.347+02:00",
"source": "#pa7kDzjBux3vVKE6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:10.155 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:11.725 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:14.935+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:14.935+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:11.725 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:12.349 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:12.349 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ayqMh3Nh9pFKSHul"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16463/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16463/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:12.349 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:17.134+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:12.349 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:12.350 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:12.350 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ayqMh3Nh9pFKSHul"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16463/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16463/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:12.350 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:17.134+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:12.350 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:12.904 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:17.134+02:00",
"source": "#ayqMh3Nh9pFKSHul",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:13.540 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:14.153 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:18.324+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:18.324+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:14.153 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:14.722 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:14.722 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CiXMJyA9V1acmqT5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16464/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16464/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:14.722 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:19.511+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:14.722 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:14.722 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:14.722 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CiXMJyA9V1acmqT5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16464/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16464/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:14.722 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:19.511+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:14.722 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:15.301 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:19.511+02:00",
"source": "#CiXMJyA9V1acmqT5",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:15.893 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 14ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 14ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:16.484 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:20.677+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:20.677+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:16.485 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:17.063 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:17.063 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1bfucJvdbWcEuU8w"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16465/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16465/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:17.063 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:21.849+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:17.063 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:17.064 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:17.064 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1bfucJvdbWcEuU8w"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16465/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16465/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:17.064 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:21.849+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:17.064 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:17.671 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:21.849+02:00",
"source": "#1bfucJvdbWcEuU8w",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:18.262 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:18.884 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:23.048+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:23.048+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:18.885 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:19.547 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:19.547 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HhsafEYlh4V7NnwE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16466/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16466/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:19.547 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:24.331+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:19.547 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:19.548 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:19.548 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HhsafEYlh4V7NnwE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16466/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16466/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:19.548 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:24.331+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:19.548 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:20.197 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:24.331+02:00",
"source": "#HhsafEYlh4V7NnwE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:20.834 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:21.447 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:25.620+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:25.620+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:21.448 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:22.255 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:22.255 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BeRu9OKRbJ2sZ1bG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16467/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16467/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:22.256 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:27.041+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:22.256 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:22.257 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:22.257 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BeRu9OKRbJ2sZ1bG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16467/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16467/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:22.257 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:27.041+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:22.257 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:22.835 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:27.041+02:00",
"source": "#BeRu9OKRbJ2sZ1bG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:23.466 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:24.050 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:28.253+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:28.253+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:24.050 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:24.650 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:24.650 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dT9wx2xEgymt6wNd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16468/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16468/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:24.650 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:29.430+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:24.650 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:24.650 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:24.650 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dT9wx2xEgymt6wNd"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16468/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16468/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:24.650 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:29.430+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:24.650 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:25.266 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:29.430+02:00",
"source": "#dT9wx2xEgymt6wNd",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:25.890 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:26.469 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:30.678+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:30.678+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:26.469 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:27.074 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:27.074 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UhvcWSUJZNNQR3cF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16469/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16469/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:27.074 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:31.853+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:27.074 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:27.076 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:27.076 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UhvcWSUJZNNQR3cF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16469/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16469/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:27.076 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:31.853+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:27.076 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:27.898 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:31.853+02:00",
"source": "#UhvcWSUJZNNQR3cF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:28.484 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:29.105 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:33.280+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:33.280+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:29.105 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:29.684 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:29.684 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iy30NfhFll7WgxMF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16470/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16470/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:29.684 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:34.481+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:29.684 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:29.699 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:29.699 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iy30NfhFll7WgxMF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16470/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16470/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:29.699 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:34.481+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:29.699 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:30.304 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:34.481+02:00",
"source": "#iy30NfhFll7WgxMF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:30.985 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:31.562 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:35.771+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:35.771+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:31.563 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:32.138 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:32.138 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KqYVynmMD1EGQbFG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16471/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16471/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:32.138 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:36.928+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:32.138 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:32.138 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:32.138 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KqYVynmMD1EGQbFG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16471/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16471/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:32.138 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:36.928+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:32.138 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:32.720 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:36.928+02:00",
"source": "#KqYVynmMD1EGQbFG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:33.303 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:33.920 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:38.092+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:38.092+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:33.921 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:34.486 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:34.486 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"k14IoPUiOKlCrCd2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16472/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16472/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:34.486 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:39.265+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:34.486 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:34.486 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:34.486 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"k14IoPUiOKlCrCd2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16472/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16472/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:34.486 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:39.265+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:34.486 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:35.256 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:39.265+02:00",
"source": "#k14IoPUiOKlCrCd2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:35.888 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:36.433 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:40.672+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:40.672+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:36.433 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:37.056 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:37.056 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WHyEzxO9XX3XwaW1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16473/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16473/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:37.056 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:41.851+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:37.056 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:37.056 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:37.056 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WHyEzxO9XX3XwaW1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16473/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16473/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:37.056 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:41.851+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:37.056 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:37.686 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:41.851+02:00",
"source": "#WHyEzxO9XX3XwaW1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:38.328 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:38.948 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:43.108+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:43.108+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:38.949 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:39.576 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:39.576 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ewo9Su3gXBxhxcT0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16474/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16474/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:39.576 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:44.351+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:39.576 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:39.577 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:39.577 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ewo9Su3gXBxhxcT0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16474/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16474/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:39.577 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:44.351+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:39.577 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:40.149 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:44.351+02:00",
"source": "#Ewo9Su3gXBxhxcT0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:40.754 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:41.378 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:45.545+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:45.545+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:41.379 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:41.950 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:41.950 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Q7FahZ2nLRHj7yZD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16475/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16475/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:41.950 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:46.744+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:41.950 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:41.950 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:41.950 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Q7FahZ2nLRHj7yZD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16475/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16475/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:41.950 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:46.744+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:41.950 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:42.533 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:46.744+02:00",
"source": "#Q7FahZ2nLRHj7yZD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:43.133 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:43.704 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:47.919+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:47.919+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:43.704 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:44.317 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:44.317 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SsC2aREyYB7jmBeJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16476/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16476/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:44.317 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:49.088+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:44.317 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:44.318 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:44.318 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SsC2aREyYB7jmBeJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16476/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16476/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:44.318 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:49.088+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:44.318 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:44.921 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:49.088+02:00",
"source": "#SsC2aREyYB7jmBeJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:45.503 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:46.138 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:50.303+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:50.303+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:46.138 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:46.752 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:46.752 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2GMlfQjUGTlSfTyH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16477/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16477/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:46.752 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:51.535+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:46.752 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:46.752 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:46.752 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2GMlfQjUGTlSfTyH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16477/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16477/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:46.752 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:51.535+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:46.752 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:47.328 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:51.535+02:00",
"source": "#2GMlfQjUGTlSfTyH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:47.924 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:48.584 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:52.717+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:52.717+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:48.585 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:49.181 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:49.181 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VzI1O6QqK5I5Nv2G"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16478/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16478/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:49.181 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:53.968+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:49.181 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:49.181 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:49.181 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VzI1O6QqK5I5Nv2G"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16478/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16478/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:49.181 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:53.968+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:49.181 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:49.750 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:53.968+02:00",
"source": "#VzI1O6QqK5I5Nv2G",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:50.403 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:50.984 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:55.187+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:55.187+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:50.984 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:51.649 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:51.649 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tiNN5OOG3CJ9xIoB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16479/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16479/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:51.649 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:56.433+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:51.649 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:51.651 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:51.651 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tiNN5OOG3CJ9xIoB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16479/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16479/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:51.651 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:56.433+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:51.651 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:52.229 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:56.433+02:00",
"source": "#tiNN5OOG3CJ9xIoB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:52.862 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:53.469 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:42:57.647+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:42:57.647+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:53.469 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:54.100 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:54.100 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fk257VU2siesSajY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16480/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16480/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:54.100 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:58.878+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:54.100 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:54.101 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:54.101 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fk257VU2siesSajY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16480/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:42:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16480/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:42:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:54.101 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:58.878+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:54.102 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:54.654 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:42:58.878+02:00",
"source": "#fk257VU2siesSajY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:55.271 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 14ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 14ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:55.872 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:00.061+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:00.061+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:55.872 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:56.489 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:56.489 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QCV9snmDVeuWAJ6N"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16481/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16481/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:56.489 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:01.286+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:56.489 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:56.504 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:56.504 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QCV9snmDVeuWAJ6N"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16481/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16481/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:56.504 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:01.286+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:56.504 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:57.117 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:01.286+02:00",
"source": "#QCV9snmDVeuWAJ6N",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:42:57.732 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:42:58.337 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:02.519+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:02.519+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:42:58.337 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:58.975 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:58.975 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5L1fZSlo9ViyFf3p"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16482/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16482/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:58.975 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:03.741+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:58.975 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:42:58.975 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:42:58.975 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5L1fZSlo9ViyFf3p"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16482/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16482/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:42:58.975 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:03.741+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:42:58.975 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:42:59.579 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:03.741+02:00",
"source": "#5L1fZSlo9ViyFf3p",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:00.222 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:00.803 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:04.997+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:04.997+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:00.803 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:01.440 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:01.440 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3QetGt2ElqgQQsBI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16483/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16483/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:01.440 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16483",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:06.224+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:01.440 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:01.441 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:01.441 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3QetGt2ElqgQQsBI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16483/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16483/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:01.441 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16483",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:06.224+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:01.441 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:02.020 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16483",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:06.224+02:00",
"source": "#3QetGt2ElqgQQsBI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:02.604 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:03.413 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:07.389+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:07.389+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:03.413 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:04.061 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:04.061 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zdBAPARnqz0A53DW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16484/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16484/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:04.061 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16484",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:08.840+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:04.061 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:04.063 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:04.063 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zdBAPARnqz0A53DW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16484/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16484/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:04.063 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16484",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:08.840+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:04.063 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:04.647 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16484",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:08.840+02:00",
"source": "#zdBAPARnqz0A53DW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:05.214 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:05.820 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:10.008+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:10.008+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:05.820 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:06.404 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:06.404 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4YIPjbnRnbZisuiI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16485/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16485/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:06.404 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16485",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:11.185+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:06.404 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:06.406 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:06.406 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4YIPjbnRnbZisuiI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16485/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16485/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:06.406 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16485",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:11.185+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:06.406 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:06.995 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16485",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:11.185+02:00",
"source": "#4YIPjbnRnbZisuiI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:07.563 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:08.178 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:12.347+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:12.347+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:08.179 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:08.737 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:08.738 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Yvzyn4oBRtpxDsy4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16486/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16486/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:08.738 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16486",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:13.524+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:08.738 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:08.740 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:08.740 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Yvzyn4oBRtpxDsy4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16486/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16486/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:08.740 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16486",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:13.524+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:08.740 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:09.362 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16486",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:13.524+02:00",
"source": "#Yvzyn4oBRtpxDsy4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:09.981 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:10.591 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:14.766+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:14.766+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:10.592 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:11.201 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:11.201 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Gyghv3JQXkT21FwJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16487/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16487/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:11.202 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16487",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:15.987+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:11.202 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:11.203 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:11.203 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Gyghv3JQXkT21FwJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16487/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16487/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:11.203 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16487",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:15.987+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:11.203 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:11.812 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16487",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:15.987+02:00",
"source": "#Gyghv3JQXkT21FwJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:12.719 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:13.359 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:17.505+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:17.505+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:13.360 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:13.934 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:13.934 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"luOvUNCCdXeM1cdh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16488/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16488/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:13.934 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16488",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:18.718+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:13.934 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:13.936 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:13.936 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"luOvUNCCdXeM1cdh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16488/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16488/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:13.936 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16488",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:18.718+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:13.936 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:14.532 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16488",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:18.718+02:00",
"source": "#luOvUNCCdXeM1cdh",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:15.136 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:15.704 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:19.921+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:19.921+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:15.705 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:16.279 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:16.279 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fnxnWpgYGOMq8YUp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16489/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16489/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:16.280 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16489",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:21.058+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:16.280 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:16.281 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:16.281 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fnxnWpgYGOMq8YUp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16489/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16489/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:16.281 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16489",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:21.058+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:16.281 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:16.863 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16489",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:21.058+02:00",
"source": "#fnxnWpgYGOMq8YUp",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:17.496 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:18.073 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:22.278+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:22.278+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:18.074 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:18.728 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:18.728 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZxKVfPdovl5chMxn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16490/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16490/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:18.728 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16490",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:23.502+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:18.728 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:18.729 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:18.729 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZxKVfPdovl5chMxn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16490/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16490/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:18.729 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16490",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:23.502+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:18.729 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:19.311 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16490",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:23.502+02:00",
"source": "#ZxKVfPdovl5chMxn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:19.888 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:20.474 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:24.681+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:24.681+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:20.474 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:21.037 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:21.037 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"R4J9ZFo8WoEPyXJt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16491/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16491/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:21.037 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16491",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:25.834+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:21.037 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:21.052 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:21.052 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"R4J9ZFo8WoEPyXJt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16491/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16491/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:21.052 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16491",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:25.834+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:21.052 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:21.673 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16491",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:25.834+02:00",
"source": "#R4J9ZFo8WoEPyXJt",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:22.282 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:22.853 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:27.069+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:27.069+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:22.868 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:23.493 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:23.493 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GgJiz20uHDuny6VW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16492/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16492/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:23.493 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16492",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:28.274+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:23.493 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:23.494 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:23.494 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GgJiz20uHDuny6VW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16492/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16492/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:23.494 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16492",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:28.274+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:23.494 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:24.141 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16492",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:28.274+02:00",
"source": "#GgJiz20uHDuny6VW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:24.758 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:25.330 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:29.543+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:29.543+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:25.331 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:25.964 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:25.964 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EYuP30Ir5Y3ZkIEv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16493/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16493/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:25.964 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16493",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:30.750+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:25.964 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:25.964 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:25.964 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EYuP30Ir5Y3ZkIEv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16493/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16493/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:25.964 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16493",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:30.750+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:25.964 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:26.568 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16493",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:30.750+02:00",
"source": "#EYuP30Ir5Y3ZkIEv",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:27.160 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:27.765 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:31.954+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:31.954+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:27.765 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:28.401 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:28.401 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HbJ687TqmU1bS1QT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16494/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16494/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:28.401 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16494",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:33.183+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:28.401 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:28.401 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:28.401 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HbJ687TqmU1bS1QT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16494/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16494/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:28.401 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16494",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:33.183+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:28.401 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:29.018 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16494",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:33.183+02:00",
"source": "#HbJ687TqmU1bS1QT",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:29.642 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:30.259 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:34.415+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:34.415+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:30.259 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:30.877 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:30.877 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HjeipsjLdW6cJaRh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16495/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16495/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:30.877 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16495",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:35.678+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:30.877 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:30.893 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:30.893 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HjeipsjLdW6cJaRh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16495/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16495/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:30.893 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16495",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:35.678+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:30.893 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:31.498 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16495",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:35.678+02:00",
"source": "#HjeipsjLdW6cJaRh",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:32.200 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:32.774 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:36.988+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:36.988+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:32.774 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:33.395 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:33.395 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oTqzUUqaU7kQ0UP9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16496/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16496/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:33.395 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16496",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:38.185+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:33.395 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:33.395 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:33.395 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oTqzUUqaU7kQ0UP9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16496/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16496/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:33.395 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16496",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:38.185+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:33.395 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:34.033 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16496",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:38.185+02:00",
"source": "#oTqzUUqaU7kQ0UP9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:34.675 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:35.281 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:39.457+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:39.457+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:35.281 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:35.845 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:35.845 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8sJwS36km7jzbwjr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16497/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16497/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:35.845 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16497",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:40.642+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:35.845 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:35.845 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:35.845 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8sJwS36km7jzbwjr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16497/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16497/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:35.845 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16497",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:40.642+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:35.845 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:36.432 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16497",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:40.642+02:00",
"source": "#8sJwS36km7jzbwjr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:37.066 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:37.667 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:41.851+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:41.851+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:37.667 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:38.322 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:38.322 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zIojLkKCOa9FMUjX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16498/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16498/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:38.322 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16498",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:43.113+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:38.322 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:38.322 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:38.322 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zIojLkKCOa9FMUjX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16498/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16498/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:38.322 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16498",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:43.113+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:38.322 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:38.943 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16498",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:43.113+02:00",
"source": "#zIojLkKCOa9FMUjX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:39.519 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:40.116 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:44.309+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:44.309+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:40.131 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:40.732 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:40.732 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"s6PMge8vb6C9LbLl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16499/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16499/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:40.732 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16499",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:45.524+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:40.732 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:40.732 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:40.732 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"s6PMge8vb6C9LbLl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16499/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16499/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:40.732 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16499",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:45.524+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:40.732 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:41.332 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16499",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:45.524+02:00",
"source": "#s6PMge8vb6C9LbLl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:41.963 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:42.528 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:46.752+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:46.752+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:42.528 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:43.149 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:43.149 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CXsjIPE02jjsnSRA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16500/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16500/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:43.149 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16500",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:47.944+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:43.149 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:43.149 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:43.149 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CXsjIPE02jjsnSRA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16500/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16500/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:43.149 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16500",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:47.944+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:43.149 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:43.718 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16500",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:47.944+02:00",
"source": "#CXsjIPE02jjsnSRA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:44.343 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:44.933 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:49.134+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:49.134+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:44.933 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:45.550 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:45.550 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jSyacLhDfVDSJMWW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16501/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16501/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:45.550 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16501",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:50.347+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:45.550 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:45.550 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:45.550 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jSyacLhDfVDSJMWW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16501/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16501/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:45.550 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16501",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:50.347+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:45.550 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:46.123 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16501",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:50.347+02:00",
"source": "#jSyacLhDfVDSJMWW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:46.729 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:47.334 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:51.520+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:51.520+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:47.334 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:47.960 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:47.960 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"J1FTxCO9Pe2eBhnI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16502/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16502/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:47.960 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16502",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:52.750+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:47.960 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:47.960 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:47.960 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"J1FTxCO9Pe2eBhnI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16502/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16502/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:47.960 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16502",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:52.750+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:47.960 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:48.582 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16502",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:52.750+02:00",
"source": "#J1FTxCO9Pe2eBhnI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:49.579 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:50.152 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:54.372+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:54.372+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:50.152 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:50.768 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:50.768 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5tYJoIUbZ0GuA4C2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16503/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16503/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:50.768 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16503",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:55.555+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:50.768 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:50.768 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:50.768 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5tYJoIUbZ0GuA4C2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16503/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16503/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:50.768 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16503",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:55.555+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:50.768 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:51.350 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16503",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:55.555+02:00",
"source": "#5tYJoIUbZ0GuA4C2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:52.042 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:52.982 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:56.829+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:56.829+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:52.983 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:53.568 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:53.568 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"v2tYImSk8brGkkYX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16504/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16504/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:53.568 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16504",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:58.357+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:53.568 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:53.570 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:53.570 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"v2tYImSk8brGkkYX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16504/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:43:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16504/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:43:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:53.570 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16504",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:58.357+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:53.570 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:54.171 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16504",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:43:58.357+02:00",
"source": "#v2tYImSk8brGkkYX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:54.799 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:55.453 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:43:59.589+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:43:59.589+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:55.453 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:56.121 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:56.136 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DL5V0lgktvyk68g2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16505/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16505/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:56.136 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16505",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:00.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:56.136 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:56.136 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:56.136 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DL5V0lgktvyk68g2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16505/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16505/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:56.136 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16505",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:00.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:56.136 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:56.723 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16505",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:00.916+02:00",
"source": "#DL5V0lgktvyk68g2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:57.329 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:43:57.913 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:02.119+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:02.119+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:43:57.913 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:58.500 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:58.500 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wiPO8FgeyqphkbpX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16506/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16506/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:58.500 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16506",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:03.287+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:58.500 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:43:58.500 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:43:58.500 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wiPO8FgeyqphkbpX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16506/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16506/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:43:58.500 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16506",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:03.287+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:43:58.500 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:43:59.132 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16506",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:03.287+02:00",
"source": "#wiPO8FgeyqphkbpX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:43:59.763 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:00.387 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:04.549+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:04.549+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:00.388 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:00.998 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:00.998 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cDil42w3bW4VPxu7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16507/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16507/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:00.998 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16507",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:05.787+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:00.998 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:00.998 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:00.998 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cDil42w3bW4VPxu7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16507/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16507/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:00.998 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16507",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:05.787+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:00.998 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:01.616 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16507",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:05.787+02:00",
"source": "#cDil42w3bW4VPxu7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:02.279 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:02.901 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:07.067+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:07.067+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:02.901 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:03.538 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:03.538 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9gKMzlfwpM3WB8FH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16508/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16508/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:03.538 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16508",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:08.332+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:03.538 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:03.538 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:03.538 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9gKMzlfwpM3WB8FH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16508/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16508/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:03.538 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16508",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:08.332+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:03.538 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:04.127 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16508",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:08.332+02:00",
"source": "#9gKMzlfwpM3WB8FH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:04.728 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:05.306 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:09.518+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:09.518+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:05.322 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:05.940 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:05.940 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zGFF8x0rLSv6qRFn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16509/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16509/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:05.940 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16509",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:10.701+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:05.940 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:05.940 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:05.940 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zGFF8x0rLSv6qRFn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16509/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16509/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:05.940 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16509",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:10.701+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:05.940 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:06.533 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16509",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:10.701+02:00",
"source": "#zGFF8x0rLSv6qRFn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:07.138 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:08.736 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:11.932+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:11.932+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:08.736 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:09.306 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:09.306 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sMPkOI7GZ4yVGR5E"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16510/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16510/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:09.306 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16510",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:14.102+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:09.306 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:09.306 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:09.306 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"sMPkOI7GZ4yVGR5E"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16510/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16510/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:09.306 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16510",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:14.102+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:09.306 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:09.897 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16510",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:14.102+02:00",
"source": "#sMPkOI7GZ4yVGR5E",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:10.467 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:11.285 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:15.262+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:15.262+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:11.285 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:11.902 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:11.902 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lEjb9vr1TEhPBojQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16511/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16511/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:11.902 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16511",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:16.686+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:11.902 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:11.902 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:11.902 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lEjb9vr1TEhPBojQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16511/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16511/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:11.902 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16511",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:16.686+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:11.902 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:12.488 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16511",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:16.686+02:00",
"source": "#lEjb9vr1TEhPBojQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:13.090 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:13.704 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:17.876+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:17.876+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:13.705 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:14.315 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:14.315 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Uroe6jedoIIlZWmF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16512/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16512/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:14.315 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16512",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:19.097+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:14.315 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:14.317 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:14.317 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Uroe6jedoIIlZWmF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16512/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16512/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:14.317 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16512",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:19.097+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:14.317 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:14.917 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16512",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:19.097+02:00",
"source": "#Uroe6jedoIIlZWmF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:15.536 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:16.154 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:20.327+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:20.327+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:16.155 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:17.757 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:17.757 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"uZACi9Sh05jIdjj5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16513/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16513/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:17.757 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16513",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:22.545+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:17.757 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:17.758 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:17.758 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"uZACi9Sh05jIdjj5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16513/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16513/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:17.758 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16513",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:22.545+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:17.758 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:18.361 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16513",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:22.545+02:00",
"source": "#uZACi9Sh05jIdjj5",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:18.932 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:19.502 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:23.719+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:23.719+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:19.503 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:20.072 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:20.072 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1wdpSSgYMl7flh76"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16514/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16514/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:20.072 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16514",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:24.861+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:20.072 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:20.073 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:20.074 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1wdpSSgYMl7flh76"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16514/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16514/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:20.074 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16514",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:24.861+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:20.074 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:21.701 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16514",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:24.861+02:00",
"source": "#1wdpSSgYMl7flh76",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:22.334 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:22.919 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:27.119+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:27.119+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:22.919 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:23.551 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:23.551 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3VBPcYvGVWzuJZdi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16515/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16515/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:23.551 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16515",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:28.338+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:23.551 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:23.551 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:23.551 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3VBPcYvGVWzuJZdi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16515/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16515/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:23.551 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16515",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:28.338+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:23.551 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:24.121 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16515",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:28.338+02:00",
"source": "#3VBPcYvGVWzuJZdi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:24.769 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:26.394 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:29.556+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:29.556+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:26.394 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:26.965 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:26.965 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9YNSo29WzriePuiM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16516/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16516/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:26.965 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16516",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:31.762+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:26.965 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:26.965 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:26.965 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9YNSo29WzriePuiM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16516/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16516/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:26.965 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16516",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:31.762+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:26.965 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:27.568 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16516",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:31.762+02:00",
"source": "#9YNSo29WzriePuiM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:28.161 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:28.734 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:32.951+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:32.951+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:28.734 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:29.526 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:29.526 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"03D5vF74n6PTpCQ5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16517/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16517/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:29.526 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16517",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:34.328+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:29.526 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:29.541 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:29.541 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"03D5vF74n6PTpCQ5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16517/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16517/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:29.541 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16517",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:34.328+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:29.541 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:30.108 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16517",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:34.328+02:00",
"source": "#03D5vF74n6PTpCQ5",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:30.762 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:31.380 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:35.551+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:35.551+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:31.380 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:31.950 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:31.950 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yn52k1yUmcr9HvgD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16518/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16518/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:31.950 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16518",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:36.753+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:31.950 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:31.950 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:31.950 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yn52k1yUmcr9HvgD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16518/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16518/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:31.965 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16518",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:36.753+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:31.965 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:32.567 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16518",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:36.753+02:00",
"source": "#yn52k1yUmcr9HvgD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:33.338 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:33.956 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:38.125+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:38.125+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:33.956 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:34.542 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:34.542 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h5mDR7wDsmapBmdG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16519/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16519/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:34.542 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16519",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:39.341+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:34.542 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:34.542 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:34.542 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h5mDR7wDsmapBmdG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16519/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16519/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:34.542 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16519",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:39.341+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:34.542 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:35.180 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16519",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:39.341+02:00",
"source": "#h5mDR7wDsmapBmdG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:35.790 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:36.401 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:40.587+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:40.587+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:36.401 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:37.007 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:37.007 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QydJgo5xuXltxbuH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16520/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16520/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:37.007 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16520",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:41.799+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:37.007 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:37.007 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:37.007 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QydJgo5xuXltxbuH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16520/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16520/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:37.007 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16520",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:41.799+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:37.007 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:37.628 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16520",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:41.799+02:00",
"source": "#QydJgo5xuXltxbuH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:38.260 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:38.862 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:43.051+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:43.051+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:38.862 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:39.463 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:39.463 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8jPPuiWmGcSZV26S"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16521/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16521/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:39.463 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16521",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:44.256+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:39.463 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:39.463 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:39.463 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8jPPuiWmGcSZV26S"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16521/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16521/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:39.463 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16521",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:44.256+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:39.463 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:40.033 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16521",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:44.256+02:00",
"source": "#8jPPuiWmGcSZV26S",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:40.654 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:41.272 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:45.449+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:45.449+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:41.272 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:41.896 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:41.896 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3bauEYPAth6FVIGu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16522/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16522/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:41.896 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16522",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:46.688+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:41.896 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:41.912 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:41.912 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3bauEYPAth6FVIGu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16522/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16522/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:41.912 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16522",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:46.688+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:41.912 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:42.502 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16522",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:46.688+02:00",
"source": "#3bauEYPAth6FVIGu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:43.143 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:43.762 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:47.929+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:47.929+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:43.777 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:44.379 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:44.379 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3Q6f9WrdiaBrFIqX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16523/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16523/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:44.379 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16523",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:49.179+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:44.379 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:44.394 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:44.394 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3Q6f9WrdiaBrFIqX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16523/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16523/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:44.394 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16523",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:49.179+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:44.394 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:45.021 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16523",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:49.179+02:00",
"source": "#3Q6f9WrdiaBrFIqX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:45.629 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 12ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 12ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:46.192 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:50.418+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:50.418+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:46.193 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:46.794 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:46.794 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7SLmD1oLuAIRprf0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16524/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16524/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:46.794 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16524",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:51.592+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:46.794 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:46.794 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:46.794 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7SLmD1oLuAIRprf0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16524/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16524/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:46.794 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16524",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:51.592+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:46.794 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:47.411 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16524",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:51.592+02:00",
"source": "#7SLmD1oLuAIRprf0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:48.028 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:48.714 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:52.817+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:52.817+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:48.714 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:49.316 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:49.316 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"12pdh2dGCNu2NDDc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16525/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16525/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:49.316 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16525",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:54.105+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:49.316 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:49.316 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:49.316 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"12pdh2dGCNu2NDDc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16525/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16525/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:49.316 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16525",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:54.105+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:49.316 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:49.918 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16525",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:54.105+02:00",
"source": "#12pdh2dGCNu2NDDc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:50.523 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:51.094 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:55.317+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:55.317+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:51.094 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:51.711 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:51.711 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7EhrRypJ07KjpQmY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16526/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16526/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:51.711 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16526",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:56.509+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:51.711 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:51.727 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:51.727 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7EhrRypJ07KjpQmY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16526/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16526/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:51.727 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16526",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:56.509+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:51.727 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:52.297 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16526",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:56.509+02:00",
"source": "#7EhrRypJ07KjpQmY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:52.899 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:53.469 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:44:57.696+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:44:57.696+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:53.469 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:54.032 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:54.032 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZHMoSqtH8EwoXpeQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16527/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16527/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:54.032 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16527",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:58.829+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:54.032 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:54.032 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:54.032 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZHMoSqtH8EwoXpeQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16527/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:44:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16527/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:44:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:54.032 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16527",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:58.829+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:54.032 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:55.019 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16527",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:44:58.829+02:00",
"source": "#ZHMoSqtH8EwoXpeQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:55.610 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:56.222 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:00.412+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:00.412+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:56.222 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:56.864 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:56.864 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CX6uATYvCgjIR2h7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16528/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16528/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:56.864 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16528",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:01.649+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:56.864 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:44:56.864 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:44:56.864 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CX6uATYvCgjIR2h7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16528/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16528/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:44:56.864 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16528",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:01.649+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:44:56.864 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:44:58.435 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16528",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:01.649+02:00",
"source": "#CX6uATYvCgjIR2h7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:44:59.006 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:44:59.576 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:03.807+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:03.807+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:44:59.576 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:00.181 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:00.181 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7FZRDjLLY95x1NG5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16529/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16529/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:00.181 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16529",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:04.977+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:00.181 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:00.181 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:00.181 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7FZRDjLLY95x1NG5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16529/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16529/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:00.181 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16529",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:04.977+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:00.181 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:00.797 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16529",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:04.977+02:00",
"source": "#7FZRDjLLY95x1NG5",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:02.401 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:03.018 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:07.191+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:07.191+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:03.018 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:03.604 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:03.604 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NJcQoQGIL6r4z8xD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16530/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16530/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:03.604 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16530",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:08.408+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:03.604 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:03.604 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:03.604 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NJcQoQGIL6r4z8xD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16530/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16530/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:03.604 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16530",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:08.408+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:03.604 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:04.205 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16530",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:08.408+02:00",
"source": "#NJcQoQGIL6r4z8xD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:04.807 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:05.440 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:09.601+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:09.601+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:05.440 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:06.042 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:06.042 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IEy5I6tSn5B5TzZQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16531/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16531/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:06.042 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16531",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:10.848+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:06.042 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:06.057 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:06.057 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IEy5I6tSn5B5TzZQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16531/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16531/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:06.057 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16531",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:10.848+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:06.057 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:06.675 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16531",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:10.848+02:00",
"source": "#IEy5I6tSn5B5TzZQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:07.243 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:07.817 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:12.047+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:12.047+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:07.817 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:08.455 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:08.455 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yQAC8RJZ0HRZIGfn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16532/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16532/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:08.455 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16532",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:13.240+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:08.455 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:08.455 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:08.455 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yQAC8RJZ0HRZIGfn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16532/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16532/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:08.455 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16532",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:13.240+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:08.455 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:09.088 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16532",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:13.240+02:00",
"source": "#yQAC8RJZ0HRZIGfn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:09.758 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:10.329 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:14.554+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:14.554+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:10.329 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:10.946 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:10.946 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QuzbYDP9JXplgiRY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16533/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16533/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:10.946 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16533",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:15.726+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:10.946 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:10.946 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:10.946 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QuzbYDP9JXplgiRY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16533/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16533/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:10.946 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16533",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:15.726+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:10.946 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:11.563 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16533",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:15.726+02:00",
"source": "#QuzbYDP9JXplgiRY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:12.227 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:12.844 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:17.018+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:17.018+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:12.844 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:13.492 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:13.492 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"g0mb9dBalqpRDQYN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16534/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16534/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:13.492 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16534",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:18.280+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:13.492 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:13.492 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:13.492 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"g0mb9dBalqpRDQYN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16534/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16534/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:13.492 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16534",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:18.280+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:13.492 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:14.094 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16534",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:18.280+02:00",
"source": "#g0mb9dBalqpRDQYN",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:14.729 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:15.315 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:19.523+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:19.523+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:15.330 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:16.246 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:16.246 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QL1LP3rodd6q01on"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16535/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16535/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:16.246 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16535",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:21.045+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:16.246 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:16.246 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:16.246 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QL1LP3rodd6q01on"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16535/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16535/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:16.246 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16535",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:21.045+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:16.246 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:16.878 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16535",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:21.045+02:00",
"source": "#QL1LP3rodd6q01on",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:17.495 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:18.113 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:22.299+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:22.299+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:18.113 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:18.752 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:18.752 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CrIROc1IIWbzcRjV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16536/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16536/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:18.752 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16536",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:23.549+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:18.752 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:18.752 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:18.752 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CrIROc1IIWbzcRjV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16536/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16536/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:18.752 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16536",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:23.549+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:18.752 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:19.331 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16536",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:23.549+02:00",
"source": "#CrIROc1IIWbzcRjV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:19.921 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:20.526 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:24.715+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:24.715+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:20.526 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:21.165 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:21.165 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"I8zOTBmlSEMeuWDB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16537/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16537/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:21.165 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16537",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:25.957+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:21.165 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:21.165 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:21.165 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"I8zOTBmlSEMeuWDB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16537/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16537/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:21.165 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16537",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:25.957+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:21.165 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:21.798 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16537",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:25.957+02:00",
"source": "#I8zOTBmlSEMeuWDB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:22.431 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:23.048 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:27.224+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:27.224+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:23.048 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:23.672 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:23.672 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ddJhzwlhZhXivUuZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16538/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16538/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:23.672 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16538",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:28.468+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:23.672 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:23.672 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:23.672 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ddJhzwlhZhXivUuZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16538/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16538/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:23.672 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16538",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:28.468+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:23.672 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:24.305 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16538",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:28.468+02:00",
"source": "#ddJhzwlhZhXivUuZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:24.890 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:25.513 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:29.691+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:29.691+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:25.513 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:26.098 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:26.098 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yxNj5fDNHF3Eb64K"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16539/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16539/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:26.098 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16539",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:30.894+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:26.098 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:26.098 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:26.098 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yxNj5fDNHF3Eb64K"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16539/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16539/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:26.098 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16539",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:30.894+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:26.098 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:26.689 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16539",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:30.894+02:00",
"source": "#yxNj5fDNHF3Eb64K",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:27.307 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:27.944 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:32.096+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:32.096+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:27.944 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:28.518 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:28.518 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aNRtrIGevn4fBU6K"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16540/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16540/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:28.518 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16540",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:33.322+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:28.518 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:28.518 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:28.518 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aNRtrIGevn4fBU6K"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16540/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16540/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:28.518 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16540",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:33.322+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:28.518 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:29.136 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16540",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:33.322+02:00",
"source": "#aNRtrIGevn4fBU6K",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:29.754 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:30.356 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:34.557+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:34.557+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:30.356 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:31.005 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:31.005 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"li1nz5wTmVm0zy1R"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16541/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16541/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:31.005 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16541",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:35.799+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:31.005 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:31.005 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:31.005 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"li1nz5wTmVm0zy1R"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16541/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16541/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:31.005 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16541",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:35.799+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:31.005 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:31.594 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16541",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:35.799+02:00",
"source": "#li1nz5wTmVm0zy1R",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:32.218 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:32.914 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:37.007+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:37.007+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:32.914 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:33.535 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:33.535 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"geuOfg5rTOqTcJIq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16542/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16542/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:33.535 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16542",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:38.327+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:33.535 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:33.535 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:33.535 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"geuOfg5rTOqTcJIq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16542/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16542/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:33.535 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16542",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:38.327+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:33.535 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:34.136 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16542",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:38.327+02:00",
"source": "#geuOfg5rTOqTcJIq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:34.943 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:35.546 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:39.746+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:39.746+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:35.546 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:36.153 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:36.153 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"u2OFvgEIjhcQXHe9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16543/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16543/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:36.153 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16543",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:40.946+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:36.153 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:36.154 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:36.155 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"u2OFvgEIjhcQXHe9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16543/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16543/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:36.155 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16543",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:40.946+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:36.155 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:36.760 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16543",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:40.946+02:00",
"source": "#u2OFvgEIjhcQXHe9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:37.367 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:38.200 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:42.152+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:42.152+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:38.201 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:39.012 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:39.012 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wSi3bVN4eSTJuke2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16544/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16544/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:39.012 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16544",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:43.598+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:39.012 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:39.014 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:39.014 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wSi3bVN4eSTJuke2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16544/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16544/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:39.014 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16544",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:43.598+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:39.014 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:39.603 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16544",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:43.598+02:00",
"source": "#wSi3bVN4eSTJuke2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:40.223 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:40.818 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:45.013+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:45.013+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:40.819 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:41.397 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:41.397 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gdhNuN3MLhkTXBem"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16545/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16545/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:41.397 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16545",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:46.189+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:41.397 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:41.398 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:41.398 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gdhNuN3MLhkTXBem"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16545/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16545/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:41.398 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16545",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:46.189+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:41.398 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:41.979 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16545",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:46.189+02:00",
"source": "#gdhNuN3MLhkTXBem",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:42.571 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:43.202 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:47.365+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:47.365+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:43.203 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:43.819 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:43.819 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SOPpSeH5mF3IGpO5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16546/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16546/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:43.819 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16546",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:48.614+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:43.819 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:43.819 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:43.819 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SOPpSeH5mF3IGpO5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16546/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16546/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:43.819 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16546",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:48.614+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:43.819 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:44.407 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16546",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:48.614+02:00",
"source": "#SOPpSeH5mF3IGpO5",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:45.024 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:45.860 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:49.814+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:49.814+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:45.860 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:46.477 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:46.477 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"03RMJAXklLo3eMNj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16547/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16547/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:46.477 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16547",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:51.267+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:46.477 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:46.477 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:46.477 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"03RMJAXklLo3eMNj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16547/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16547/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:46.477 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16547",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:51.267+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:46.477 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:47.079 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16547",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:51.267+02:00",
"source": "#03RMJAXklLo3eMNj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:47.680 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:48.283 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:52.474+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:52.474+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:48.283 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:48.885 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:48.885 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GtMpPUnok5RB9Pce"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16548/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16548/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:48.885 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16548",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:53.675+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:48.885 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:48.885 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:48.885 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GtMpPUnok5RB9Pce"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16548/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16548/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:48.885 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16548",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:53.675+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:48.885 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:49.548 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16548",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:53.675+02:00",
"source": "#GtMpPUnok5RB9Pce",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:50.192 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:50.979 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:54.992+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:54.992+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:50.979 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:51.596 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:51.596 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WGH0tLuteIZCKTO9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16549/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16549/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:51.596 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16549",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:56.406+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:51.596 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:51.611 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:51.611 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WGH0tLuteIZCKTO9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16549/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16549/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:51.611 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16549",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:56.406+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:51.611 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:52.260 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16549",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:56.406+02:00",
"source": "#WGH0tLuteIZCKTO9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:52.877 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:53.501 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:45:57.678+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:45:57.678+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:53.501 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:54.087 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:54.087 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"M8AbQDs0bVF1bfeo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16550/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16550/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:54.087 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16550",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:58.892+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:54.087 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:54.087 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:54.087 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"M8AbQDs0bVF1bfeo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16550/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:45:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16550/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:45:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:54.087 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16550",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:58.892+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:54.087 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:55.169 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16550",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:45:58.892+02:00",
"source": "#M8AbQDs0bVF1bfeo",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:56.810 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:57.395 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:01.595+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:01.595+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:57.395 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:58.035 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:58.035 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QIXlI0iV3EpF1DGg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16551/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16551/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:58.035 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16551",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:02.828+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:58.035 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:45:58.035 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:45:58.035 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QIXlI0iV3EpF1DGg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16551/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16551/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:45:58.035 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16551",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:02.828+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:45:58.035 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:45:58.599 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16551",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:02.828+02:00",
"source": "#QIXlI0iV3EpF1DGg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:45:59.206 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:45:59.785 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:03.993+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:03.993+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:45:59.786 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:00.409 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:00.409 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"twHfuyFd4RTelVPf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16552/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16552/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:00.409 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16552",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:05.208+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:00.409 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:00.409 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:00.409 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"twHfuyFd4RTelVPf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16552/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16552/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:00.409 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16552",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:05.208+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:00.409 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:01.009 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16552",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:05.208+02:00",
"source": "#twHfuyFd4RTelVPf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:01.640 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:02.265 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:06.438+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:06.438+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:02.266 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:02.864 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:02.864 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aKPcV843DFcjeMf1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16553/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16553/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:02.864 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16553",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:07.651+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:02.864 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:02.865 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:02.865 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aKPcV843DFcjeMf1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16553/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16553/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:02.865 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16553",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:07.651+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:02.865 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:03.467 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16553",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:07.651+02:00",
"source": "#aKPcV843DFcjeMf1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:04.053 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:04.629 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:08.847+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:08.847+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:04.631 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:05.212 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:05.212 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"j32OexypAschfkBW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16554/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16554/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:05.212 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16554",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:10.007+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:05.212 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:05.214 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:05.214 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"j32OexypAschfkBW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16554/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16554/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:05.214 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16554",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:10.007+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:05.214 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:05.812 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16554",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:10.007+02:00",
"source": "#j32OexypAschfkBW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:06.437 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:07.074 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:11.241+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:11.241+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:07.080 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:07.705 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:07.705 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fJVmEhPfVAQECrqs"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16555/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16555/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:07.705 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16555",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:12.484+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:07.705 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:07.707 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:07.707 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fJVmEhPfVAQECrqs"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16555/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16555/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:07.707 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16555",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:12.484+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:07.707 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:08.310 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16555",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:12.484+02:00",
"source": "#fJVmEhPfVAQECrqs",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:09.118 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 12ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 12ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:09.742 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:13.915+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:13.915+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:09.742 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:10.350 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:10.350 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OjCZRi4SAu4znJFK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16556/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16556/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:10.350 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16556",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:15.147+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:10.350 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:10.351 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:10.352 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OjCZRi4SAu4znJFK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16556/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16556/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:10.352 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16556",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:15.147+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:10.352 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:10.946 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16556",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:15.147+02:00",
"source": "#OjCZRi4SAu4znJFK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:11.560 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:12.129 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:16.354+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:16.354+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:12.130 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:12.703 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:12.703 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GHqXgSBevwz65pAy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16557/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16557/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:12.703 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16557",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:17.500+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:12.703 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:12.704 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:12.704 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GHqXgSBevwz65pAy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16557/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16557/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:12.704 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16557",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:17.500+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:12.704 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:13.333 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16557",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:17.500+02:00",
"source": "#GHqXgSBevwz65pAy",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:13.906 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:14.492 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:18.709+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:18.709+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:14.492 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:15.105 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:15.105 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"uwXgXcsGnOYIfNzW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16558/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16558/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:15.105 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16558",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:19.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:15.105 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:15.120 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:15.120 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"uwXgXcsGnOYIfNzW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16558/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16558/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:15.120 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16558",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:19.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:15.120 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:15.756 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16558",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:19.916+02:00",
"source": "#uwXgXcsGnOYIfNzW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:16.377 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:17.013 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:21.184+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:21.184+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:17.013 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:17.621 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:17.621 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bkwWF02FGrKAbPDk"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16559/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16559/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:17.621 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16559",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:22.424+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:17.621 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:17.637 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:17.637 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bkwWF02FGrKAbPDk"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16559/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16559/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:17.637 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16559",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:22.424+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:17.637 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:18.239 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16559",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:22.424+02:00",
"source": "#bkwWF02FGrKAbPDk",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:18.835 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:19.457 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:23.624+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:23.624+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:19.457 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:20.040 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:20.040 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ubkfpo1yubKiOcOG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16560/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16560/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:20.040 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16560",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:24.837+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:20.040 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:20.040 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:20.040 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ubkfpo1yubKiOcOG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16560/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16560/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:20.040 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16560",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:24.837+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:20.040 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:20.611 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16560",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:24.837+02:00",
"source": "#Ubkfpo1yubKiOcOG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:21.259 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:21.838 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:26.048+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:26.048+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:21.839 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:22.454 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:22.454 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lHiVDxUAQ32AKBbD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16561/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16561/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:22.454 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16561",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:27.232+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:22.454 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:22.455 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:22.455 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lHiVDxUAQ32AKBbD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16561/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16561/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:22.455 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16561",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:27.232+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:22.455 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:23.115 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16561",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:27.232+02:00",
"source": "#lHiVDxUAQ32AKBbD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:23.732 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:24.484 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:28.510+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:28.510+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:24.484 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:25.156 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:25.156 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HnW6iPmM5rG6wWoE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16562/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16562/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:25.156 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16562",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:29.950+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:25.156 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:25.156 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:25.156 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HnW6iPmM5rG6wWoE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16562/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16562/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:25.156 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16562",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:29.950+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:25.156 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:25.755 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16562",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:29.950+02:00",
"source": "#HnW6iPmM5rG6wWoE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:26.402 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:27.042 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:31.181+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:31.181+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:27.042 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:27.628 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:27.628 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"F3jVqfpQq5wv8pba"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16563/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16563/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:27.628 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16563",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:32.428+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:27.628 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:27.628 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:27.628 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"F3jVqfpQq5wv8pba"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16563/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16563/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:27.628 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16563",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:32.428+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:27.628 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:28.207 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16563",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:32.428+02:00",
"source": "#F3jVqfpQq5wv8pba",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:29.094 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:29.769 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:33.902+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:33.902+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:29.769 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:30.418 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:30.418 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RExAgaiRlRh1kYxa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16564/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16564/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:30.418 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16564",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:35.211+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:30.418 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:30.418 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:30.418 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RExAgaiRlRh1kYxa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16564/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16564/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:30.418 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16564",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:35.211+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:30.418 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:31.046 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16564",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:35.211+02:00",
"source": "#RExAgaiRlRh1kYxa",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:31.972 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:32.554 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:36.772+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:36.772+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:32.554 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:33.181 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:33.181 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2QdmoVQbUxvfjULh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16565/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16565/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:33.181 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16565",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:37.976+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:33.181 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:33.197 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:33.197 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2QdmoVQbUxvfjULh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16565/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16565/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:33.197 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16565",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:37.976+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:33.197 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:33.868 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16565",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:37.976+02:00",
"source": "#2QdmoVQbUxvfjULh",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:34.488 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:35.099 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:39.293+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:39.293+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:35.100 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:35.963 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:35.963 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Jv0t1bFDTuhOfMAD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16566/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16566/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:35.963 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16566",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:40.751+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:35.963 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:35.964 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:35.964 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Jv0t1bFDTuhOfMAD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16566/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16566/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:35.965 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16566",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:40.751+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:35.965 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:36.554 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16566",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:40.751+02:00",
"source": "#Jv0t1bFDTuhOfMAD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:37.168 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:37.799 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:41.961+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:41.961+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:37.800 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:38.443 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:38.445 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MiNBqWYCxXedZI6d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16567/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16567/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:38.445 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16567",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:43.227+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:38.445 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:38.446 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:38.446 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MiNBqWYCxXedZI6d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16567/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16567/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:38.446 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16567",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:43.227+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:38.446 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:39.081 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16567",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:43.227+02:00",
"source": "#MiNBqWYCxXedZI6d",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:39.681 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:40.301 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:44.475+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:44.475+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:40.301 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:41.118 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:41.118 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"m11Sk7ptHknM2M0m"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16568/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16568/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:41.118 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16568",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:45.707+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:41.118 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:41.118 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"720"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:41.118 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"m11Sk7ptHknM2M0m"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16568/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16568/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:41.118 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16568",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:45.707+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:41.118 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:41.689 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16568",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:45.707+02:00",
"source": "#m11Sk7ptHknM2M0m",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:42.286 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:42.920 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:47.095+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:47.095+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:42.920 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:51.203 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:51.203 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DUq95Dm0oTPXy5cj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16569/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16569/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:51.203 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16569",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:56.007+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:51.203 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:51.203 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:51.203 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DUq95Dm0oTPXy5cj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16569/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16569/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:51.203 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16569",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:56.007+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:51.203 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:51.788 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16569",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:56.007+02:00",
"source": "#DUq95Dm0oTPXy5cj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:53.425 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:54.042 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:46:58.227+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:46:58.227+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:54.042 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:54.665 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:54.665 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MyUEv63oeUzTLldD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16570/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16570/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:54.665 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16570",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:59.464+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:54.665 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:54.671 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"697"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:54.671 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MyUEv63oeUzTLldD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16570/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:46:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16570/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:46:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:54.671 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16570",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:59.464+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:54.671 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:55.254 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16570",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:46:59.464+02:00",
"source": "#MyUEv63oeUzTLldD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:55.893 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:56.479 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:00.696+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:00.696+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:56.479 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:57.127 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:57.127 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"87Zftd7LhvCktQGS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16571/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16571/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:57.127 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16571",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:01.927+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:57.127 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:57.127 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:57.127 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"87Zftd7LhvCktQGS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16571/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16571/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:57.127 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16571",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:01.927+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:57.127 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:46:57.759 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16571",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:01.927+02:00",
"source": "#87Zftd7LhvCktQGS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:46:58.360 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:46:59.032 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:03.163+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:03.163+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:46:59.048 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:59.665 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:59.665 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YH3i73hSkATiSsUO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16572/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16572/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:59.665 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16572",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:04.472+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:59.665 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:46:59.665 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"700"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:46:59.665 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YH3i73hSkATiSsUO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16572/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16572/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:46:59.665 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16572",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:04.472+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:46:59.665 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:00.303 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16572",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:04.472+02:00",
"source": "#YH3i73hSkATiSsUO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:00.894 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:01.473 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:05.695+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:05.695+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:01.474 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:02.116 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:02.116 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ht8inYuvgYhVnswq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16573/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16573/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:02.116 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16573",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:06.896+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:02.116 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:02.118 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:02.118 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ht8inYuvgYhVnswq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16573/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16573/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:02.118 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16573",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:06.896+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:02.118 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:02.742 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16573",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:06.896+02:00",
"source": "#ht8inYuvgYhVnswq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:03.322 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:03.955 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:08.128+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:08.128+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:03.956 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:04.532 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:04.532 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GjeWqwiunfgUrdc7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16574/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16574/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:04.532 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16574",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:09.332+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:04.533 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:04.534 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:04.534 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GjeWqwiunfgUrdc7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16574/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16574/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:04.534 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16574",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:09.332+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:04.534 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:05.111 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16574",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:09.332+02:00",
"source": "#GjeWqwiunfgUrdc7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:05.733 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:06.339 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:10.532+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:10.532+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:06.339 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:06.946 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:06.946 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WQT0V7ekfI1LRKet"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16575/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16575/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:06.946 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16575",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:11.725+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:06.946 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:06.946 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:06.946 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WQT0V7ekfI1LRKet"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16575/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16575/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:06.946 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16575",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:11.725+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:06.946 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:07.555 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16575",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:11.725+02:00",
"source": "#WQT0V7ekfI1LRKet",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:08.156 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:08.760 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:12.956+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:12.956+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:08.760 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:09.413 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:09.413 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HtLjMqcFRFsRB4am"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16576/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16576/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:09.413 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16576",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:14.200+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:09.413 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:09.415 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"722"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:09.415 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HtLjMqcFRFsRB4am"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16576/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16576/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:09.415 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16576",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:14.200+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:09.415 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:10.018 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16576",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:14.200+02:00",
"source": "#HtLjMqcFRFsRB4am",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:10.635 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 28ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 28ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:11.217 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:15.432+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:15.432+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:11.217 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:11.813 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:11.813 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cuLSlnUVVtDJwvJz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16577/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16577/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:11.813 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16577",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:16.605+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:11.813 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:11.814 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"721"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:11.814 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cuLSlnUVVtDJwvJz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16577/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16577/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:11.814 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16577",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:16.605+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:11.814 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:12.433 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16577",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:16.605+02:00",
"source": "#cuLSlnUVVtDJwvJz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:13.069 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:13.662 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:17.862+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:17.862+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:13.662 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:14.290 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:14.290 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"el0SOW438ZDkuGCW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16578/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16578/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:14.290 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16578",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:19.093+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:14.290 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:14.290 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:14.290 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"el0SOW438ZDkuGCW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16578/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16578/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:14.290 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16578",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:19.093+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:14.290 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:14.906 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16578",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:19.093+02:00",
"source": "#el0SOW438ZDkuGCW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:15.627 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:16.229 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:20.425+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:20.425+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:16.229 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:18.067 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:18.067 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vhVs3SihgDStvvvX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16579/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16579/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:18.067 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16579",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:22.653+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:18.067 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:18.067 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:18.067 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vhVs3SihgDStvvvX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16579/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16579/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:18.067 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16579",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:22.653+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:18.067 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:18.738 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16579",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:22.653+02:00",
"source": "#vhVs3SihgDStvvvX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:19.344 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:19.954 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:24.145+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:24.145+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:19.956 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:20.571 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:20.571 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Mr81Gp0AiDH29y5l"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16580/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16580/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:20.571 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16580",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:25.370+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:20.571 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:20.571 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:20.571 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Mr81Gp0AiDH29y5l"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16580/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16580/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:20.571 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16580",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:25.370+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:20.571 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:21.187 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16580",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:25.370+02:00",
"source": "#Mr81Gp0AiDH29y5l",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:21.816 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 11ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 11ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:22.427 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:26.612+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:26.612+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:22.427 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:23.026 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:23.026 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"a6Jhzo44WIQTVCNR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16581/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16581/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:23.026 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16581",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:27.822+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:23.026 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:23.026 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:23.026 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"a6Jhzo44WIQTVCNR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16581/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16581/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:23.026 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16581",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:27.822+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:23.026 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:23.610 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16581",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:27.822+02:00",
"source": "#a6Jhzo44WIQTVCNR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:24.207 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:24.772 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:28.996+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:28.996+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:24.774 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:25.399 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:25.401 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0FzmvmNKyMOzsjea"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16582/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16582/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:25.401 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16582",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:30.190+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:25.401 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:25.402 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"694"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:25.402 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0FzmvmNKyMOzsjea"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16582/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16582/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:25.402 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16582",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:30.190+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:25.402 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:26.026 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16582",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:30.190+02:00",
"source": "#0FzmvmNKyMOzsjea",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:26.949 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:27.551 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:31.708+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:31.708+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:27.551 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:28.137 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:28.137 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZuWQIn5KEhBBsEOX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16583/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16583/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:28.137 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16583",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:32.935+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:28.137 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:28.139 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:28.139 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZuWQIn5KEhBBsEOX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16583/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16583/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:28.139 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16583",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:32.935+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:28.139 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:28.735 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16583",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:32.935+02:00",
"source": "#ZuWQIn5KEhBBsEOX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:29.387 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:29.963 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:34.198+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:34.198+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:29.964 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:30.587 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:30.587 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qwufZy1yBFyOOe0O"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16584/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16584/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:30.603 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16584",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:35.391+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:30.603 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:30.603 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:30.603 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qwufZy1yBFyOOe0O"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16584/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16584/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:30.603 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16584",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:35.391+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:30.603 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:31.221 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16584",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:35.391+02:00",
"source": "#qwufZy1yBFyOOe0O",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:31.807 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:33.403 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:36.616+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:36.616+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:33.403 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:34.000 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:34.000 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VMxcaOpLhjK6tIrJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16585/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16585/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:34.000 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16585",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:38.802+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:34.001 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:34.002 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:34.002 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VMxcaOpLhjK6tIrJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16585/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16585/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:34.002 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16585",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:38.802+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:34.002 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:34.580 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16585",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:38.802+02:00",
"source": "#VMxcaOpLhjK6tIrJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:35.151 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:35.733 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:39.965+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:39.965+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:35.733 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:36.350 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:36.350 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ArvITZUrVnjBusQg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16586/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16586/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:36.350 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16586",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:41.156+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:36.350 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:36.357 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"707"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:36.357 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ArvITZUrVnjBusQg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16586/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16586/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:36.357 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16586",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:41.156+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:36.357 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:36.940 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16586",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:41.156+02:00",
"source": "#ArvITZUrVnjBusQg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-unrelated",
"display": "No Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:37.736 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:38.578 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:42.540+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:42.540+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:38.578 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:39.170 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:39.170 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"l6Vqx9zRgunoIUxl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16587/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16587/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:39.170 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16587",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:43.969+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:39.170 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:39.172 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:39.172 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"l6Vqx9zRgunoIUxl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16587/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16587/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:39.172 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16587",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:43.969+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:39.172 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:39.780 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16587",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:43.969+02:00",
"source": "#l6Vqx9zRgunoIUxl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:40.402 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:41.019 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:45.212+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:45.212+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:41.019 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:41.938 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:41.938 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"I1FvPnOTym3ATxJ9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16588/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16588/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:41.938 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16588",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:46.726+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:41.938 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:41.938 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"705"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:41.938 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"I1FvPnOTym3ATxJ9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16588/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16588/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:41.938 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16588",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:46.726+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:41.938 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:42.543 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16588",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:46.726+02:00",
"source": "#I1FvPnOTym3ATxJ9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:43.176 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:43.815 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:47.990+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:47.990+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:43.815 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:44.416 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:44.416 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xfIrFNz2yGFNnrTu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16589/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16589/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:44.416 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16589",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:49.223+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:44.416 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:44.416 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:44.416 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xfIrFNz2yGFNnrTu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16589/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16589/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:44.416 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16589",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:49.223+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:44.416 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:45.001 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16589",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:49.223+02:00",
"source": "#xfIrFNz2yGFNnrTu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:45.578 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:46.171 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:50.379+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:50.379+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:46.171 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:46.788 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:46.788 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6hQedjmlkwlkRnyz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16590/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16590/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:46.788 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16590",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:51.588+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:46.788 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:46.788 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:46.788 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6hQedjmlkwlkRnyz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16590/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16590/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:46.788 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16590",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:51.588+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:46.788 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:47.395 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16590",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:51.588+02:00",
"source": "#6hQedjmlkwlkRnyz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:47.975 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:49.600 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:52.783+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:52.783+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:49.600 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:50.216 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:50.216 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yIDwZwLRBruzIVqE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16591/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16591/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:50.216 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16591",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:55.020+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:50.216 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:50.216 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:50.216 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yIDwZwLRBruzIVqE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16591/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16591/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:50.216 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16591",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:55.020+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:50.216 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:50.796 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16591",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:55.020+02:00",
"source": "#yIDwZwLRBruzIVqE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:51.408 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:52.203 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:56.218+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:56.218+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:52.203 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:52.773 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:52.773 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EZqcuXCrCmG49j9r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16592/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16592/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:52.773 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16592",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:57.586+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:52.773 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:52.773 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"710"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:52.773 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EZqcuXCrCmG49j9r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16592/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16592/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:52.773 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16592",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:57.586+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:52.773 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:53.343 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16592",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:57.586+02:00",
"source": "#EZqcuXCrCmG49j9r",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:53.929 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:54.514 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:47:58.736+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:47:58.736+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:54.530 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:55.147 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:55.147 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8GG647UoN7EpJUoZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16593/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16593/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:55.147 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16593",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:59.948+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:55.147 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:55.147 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:55.147 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8GG647UoN7EpJUoZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16593/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:47:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16593/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:47:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:55.147 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16593",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:59.948+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:55.147 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:55.716 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16593",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:47:59.948+02:00",
"source": "#8GG647UoN7EpJUoZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:56.299 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:56.933 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:01.103+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:01.103+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:56.934 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:57.551 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:57.551 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"uDLG80TTUjL1Ube9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16594/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16594/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:57.551 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16594",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:02.333+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:57.551 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:57.551 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"709"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:57.551 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"uDLG80TTUjL1Ube9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16594/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16594/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:57.551 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16594",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:02.333+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:57.551 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:47:58.129 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16594",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:02.333+02:00",
"source": "#uDLG80TTUjL1Ube9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:47:58.769 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:47:59.354 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:03.574+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:03.574+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:47:59.354 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:59.925 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:59.925 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Yw3d3fxDFjO9n1Rw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16595/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16595/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:59.925 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16595",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:04.733+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:59.925 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:47:59.925 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:47:59.925 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Yw3d3fxDFjO9n1Rw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16595/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16595/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:47:59.925 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16595",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:04.733+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:47:59.925 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:00.550 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16595",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:04.733+02:00",
"source": "#Yw3d3fxDFjO9n1Rw",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:01.163 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:02.742 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:05.972+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:05.972+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:02.744 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:03.354 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:03.354 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wPo6rvnMybTBWGB4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16596/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16596/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:03.354 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16596",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:08.156+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:03.354 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:03.354 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:03.354 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wPo6rvnMybTBWGB4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16596/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16596/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:03.354 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16596",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:08.156+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:03.354 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:03.972 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16596",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:08.156+02:00",
"source": "#wPo6rvnMybTBWGB4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:04.617 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:05.226 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:09.431+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:09.431+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:05.226 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:05.815 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:05.815 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"PyDTGdSdjWpUDNKp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16597/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16597/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:05.815 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16597",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:10.621+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:05.815 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:05.817 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:05.818 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"PyDTGdSdjWpUDNKp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16597/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16597/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:05.818 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16597",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:10.621+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:05.818 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:06.430 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16597",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:10.621+02:00",
"source": "#PyDTGdSdjWpUDNKp",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:07.017 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:07.609 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:11.818+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:11.818+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:07.610 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:08.184 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:08.184 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FYOVyaGMYm2G4wyt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16598/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16598/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:08.184 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16598",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:13.001+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:08.184 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:08.184 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:08.184 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FYOVyaGMYm2G4wyt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16598/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16598/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:08.184 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16598",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:13.001+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:08.184 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:08.802 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16598",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:13.001+02:00",
"source": "#FYOVyaGMYm2G4wyt",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:09.427 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:10.197 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:14.232+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:14.232+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:10.197 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:10.850 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:10.850 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LTfGINoIOgC7cy0B"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16599/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16599/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:10.850 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16599",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:15.658+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:10.850 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:10.850 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"717"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:10.850 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LTfGINoIOgC7cy0B"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16599/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16599/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:10.850 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16599",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:15.658+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:10.850 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:11.463 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16599",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:15.658+02:00",
"source": "#LTfGINoIOgC7cy0B",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:12.102 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:13.021 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:16.909+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:16.909+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:13.021 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:13.655 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:13.655 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CMMX40m9fW6qqkbJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16600/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16600/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:13.655 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16600",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:18.460+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:13.655 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:13.655 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"703"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:13.655 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CMMX40m9fW6qqkbJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16600/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16600/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:13.655 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16600",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:18.460+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:13.655 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:14.241 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16600",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:18.460+02:00",
"source": "#CMMX40m9fW6qqkbJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:15.176 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:15.763 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:19.960+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:19.960+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:15.763 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:16.368 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:16.368 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Uzq2X4ufUzzx4aUY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16601/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16601/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:16.368 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16601",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:21.180+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:16.368 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:16.368 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:16.368 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Uzq2X4ufUzzx4aUY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16601/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16601/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:16.368 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16601",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:21.180+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:16.368 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:16.974 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16601",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:21.180+02:00",
"source": "#Uzq2X4ufUzzx4aUY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:17.612 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:18.213 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:22.419+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:22.419+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:18.213 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:18.846 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:18.846 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zTA7OXjo9xpwCqTE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16602/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16602/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:18.846 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16602",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:23.657+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:18.846 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:18.846 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:18.846 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zTA7OXjo9xpwCqTE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16602/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16602/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:18.846 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16602",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:23.657+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:18.846 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:19.794 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16602",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:23.657+02:00",
"source": "#zTA7OXjo9xpwCqTE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:20.381 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:20.998 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:25.201+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:25.201+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:20.998 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:21.584 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:21.584 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UP29aq2KHSvDMAxD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16603/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16603/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:21.584 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16603",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:26.393+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:21.584 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:21.584 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"701"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:21.584 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UP29aq2KHSvDMAxD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16603/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16603/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:21.584 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16603",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:26.393+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:21.584 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:22.170 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16603",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:26.393+02:00",
"source": "#UP29aq2KHSvDMAxD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:22.803 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:23.411 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:27.609+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:27.609+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:23.411 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:24.043 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:24.043 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"96ujADzlUHGDChU3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16604/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16604/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:24.043 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16604",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:28.846+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:24.043 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:24.043 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:24.043 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"96ujADzlUHGDChU3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16604/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16604/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:24.043 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16604",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:28.846+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:24.043 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:24.611 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16604",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:28.846+02:00",
"source": "#96ujADzlUHGDChU3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013sibling",
"display": "Concuerda Hermano"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:25.328 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:25.944 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:30.137+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:30.137+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:25.944 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:26.570 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:26.570 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6tiJT0gAOpeJlRYz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16605/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16605/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:26.570 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16605",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:31.386+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:26.570 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:26.570 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"691"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:26.570 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6tiJT0gAOpeJlRYz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16605/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16605/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:26.570 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16605",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:31.386+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:26.570 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:27.176 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16605",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:31.386+02:00",
"source": "#6tiJT0gAOpeJlRYz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-haplo-identical",
"display": "Haplo-idéntico"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:27.801 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:28.391 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:32.612+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:32.612+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:28.391 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:29.014 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:29.014 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SVvvD7wJkyxAqpl1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16606/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16606/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:29.014 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16606",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:33.816+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:29.014 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:29.014 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"715"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:29.014 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SVvvD7wJkyxAqpl1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16606/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16606/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:29.014 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16606",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:33.816+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:29.014 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:29.631 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16606",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:33.816+02:00",
"source": "#SVvvD7wJkyxAqpl1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:30.380 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:31.035 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:35.185+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:35.185+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:31.035 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:31.869 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:31.869 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kF6357b37ffJ3HbT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16607/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16607/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:31.869 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16607",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:36.675+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:31.869 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:31.869 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"711"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:31.869 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kF6357b37ffJ3HbT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16607/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16607/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:31.869 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16607",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:36.675+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:31.869 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:32.475 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16607",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:36.675+02:00",
"source": "#kF6357b37ffJ3HbT",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related",
"display": "Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:34.102 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:34.740 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:38.903+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:38.903+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:34.740 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:35.396 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:35.396 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vvGU0HFTjMMeiMOE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16608/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16608/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:35.396 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16608",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:40.204+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:35.396 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:35.396 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"708"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:35.396 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vvGU0HFTjMMeiMOE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16608/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16608/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:35.396 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16608",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:40.204+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:35.396 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:36.005 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16608",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:40.204+02:00",
"source": "#vvGU0HFTjMMeiMOE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013parent",
"display": "Concuerda Progenitor"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-cord",
"display": "Cordón Umbilical"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:36.678 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:37.290 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:41.484+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:41.484+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:37.290 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:37.870 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:37.870 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8fJtpMPqxttHtoI0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16609/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16609/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:37.870 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16609",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:42.684+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:37.870 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:37.870 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"704"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:37.870 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8fJtpMPqxttHtoI0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16609/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16609/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:37.870 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16609",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:42.684+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:37.870 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:38.480 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16609",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:42.684+02:00",
"source": "#8fJtpMPqxttHtoI0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-mismatch-related",
"display": "No Concuerda Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:39.070 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:39.670 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:43.878+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:43.878+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:39.670 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:40.300 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:40.300 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QJtgpd1R0zudUTQT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16610/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16610/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:40.300 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16610",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:45.108+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:40.301 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:40.302 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:40.302 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QJtgpd1R0zudUTQT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16610/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16610/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:40.302 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16610",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:45.108+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:40.302 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:40.877 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16610",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:45.108+02:00",
"source": "#QJtgpd1R0zudUTQT",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:41.527 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 2ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 2ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:42.138 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:46.314+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:46.314+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:42.139 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:42.762 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:42.762 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gB3Kk25ZvOx6GHer"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16611/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16611/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:42.762 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16611",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:47.567+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:42.762 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:42.764 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"724"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:42.764 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gB3Kk25ZvOx6GHer"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16611/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16611/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:42.764 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16611",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:47.567+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:42.764 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:43.362 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16611",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:47.567+02:00",
"source": "#gB3Kk25ZvOx6GHer",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-pbsc",
"display": "Torrente Sanguíneo Periférico"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:44.012 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:44.808 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:48.812+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:48.812+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:44.809 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:45.435 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:45.435 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4Eo7cIqmGnawu4EQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16612/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16612/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:45.435 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16612",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:50.240+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:45.435 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:45.435 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"706"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:45.435 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4Eo7cIqmGnawu4EQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16612/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16612/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:45.435 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16612",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:50.240+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:45.435 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:46.077 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16612",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:50.240+02:00",
"source": "#4Eo7cIqmGnawu4EQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-unrelated",
"display": "Concuerda, no Emparentado"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:46.696 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:47.346 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:51.507+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:51.507+02:00"
}
]
}
@Delete
@BiologicallyDerivedProduct
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR BiologicallyDerivedProduct resource.
Given
path '/BiologicallyDerivedProduct'
And
print resource
11:48:47.346 [print] {
"resourceType": "BiologicallyDerivedProduct",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:47.983 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:47.983 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"S0rqG7zwWtZFqwKE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16613/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16613/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:47.983 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16613",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:52.780+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:47.983 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
11:48:47.983 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"713"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
11:48:47.983 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"S0rqG7zwWtZFqwKE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16613/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 09:48:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/BiologicallyDerivedProduct/16613/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 09:48:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
11:48:47.983 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16613",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:52.780+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
> *
print COOKIES
11:48:47.983 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
11:48:49.797 [print] {
"resourceType": "BiologicallyDerivedProduct",
"id": "16613",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T11:48:52.780+02:00",
"source": "#S0rqG7zwWtZFqwKE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/BiologicallyDerivedProduct-sct-eu-pcsp"
]
},
"extension": [
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-donor-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-matched-related\u2013other",
"display": "Concuerda Otro pariente"
}
]
}
},
{
"url": "http://hl7.eu/fhir/ig/pcsp/StructureDefinition/sct-source-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.eu/fhir/ig/pcsp/CodeSystem/cs-generic-eu-pcsp",
"code": "sct-bone-marrow",
"display": "Médula Ósea"
}
]
}
}
],
"productCategory": "cells"
}
When
print 'They try to delete the BiologicallyDerivedProduct resource from the server'
And
method DELETE
Then
status 200
And
print response
11:48:50.413 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the BiologicallyDerivedProduct resource is on the server'
And
method GET
Then
status 410
And
print response
11:48:50.991 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T11:48:55.224+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T11:48:55.224+02:00"
}
]
}